Page({
  data: {
    count: 0,
    msg: "你好,",
    type: 2,
    flag: true,
    arr1: ["苹果", "华为", "小米"],
    userList: [
      { id: 1, name: "小红" },
      { id: 2, name: "小黄" },
      { id: 3, name: "小白" },
    ],
  },

  btnTapHandler(e) {
    console.log(e);
  },

  CountChange() {
    this.setData({
      count: this.data.count + 1,
    });
  },

  btnTap2(e) {
    this.setData({
      count: this.data.count + e.target.dataset.info,
    });
  },

  inputHandler(e) {
    this.setData({
      msg: e.detail.value,
    });
  },
});
